﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MostPopularInterface
{
    class KikosFamily:IEnumerable
    {
        public Kid ElderGirl { get; set; }
        public Kid MiddleGirl { get; set; }
        public Kid SmallGirl { get; set; }
        public Kid Kikos { get; set; }
        public KikosFamily()
        {
            ElderGirl = new Kid { Age = 20, Name = "Hripsik" };
            MiddleGirl = new Kid { Age = 18, Name = "Huri" };
            SmallGirl = new Kid { Age = 5, Name = "Nazik" };
            Kikos = new Kid { Age = 10, Name = "Kikos" };

        }

        public IEnumerator GetEnumerator()
        {
            yield return ElderGirl;
            yield return MiddleGirl;
            yield return SmallGirl;
            yield return Kikos;

        }
    }
}
